# 逆序打印数字
def pai(n):
    next = 0
    if n < 1:  # 小于一个数
        next = input("please input a number:")
        print(next)
    else:   # 大于一个数，倒序
        next = input("please input a number:")
        pai(n - 1)
        print(next)


i = 2 #对i+1个数倒序
pai(i)
